basic drawing logic

图学逻辑